layui.use('rate', function () {
    let rate = layui.rate;

//渲染
    let ins1 =
    rate.render({
        elem: '#test2',
        value: 3.0 //初始值
        ,
        theme: '#00a680',
        text: true //开启文本
        ,
        half: true
    });
})
layui.use('rate', function () {
    let rate = layui.rate;

//渲染
    let ins2 =
        rate.render({
            elem: '#test3',
            value: 3.0 //初始值
            ,
            theme: '#00a680',
            text: true //开启文本
            ,
            half: true
        });
})
layui.use('rate', function () {
    let rate = layui.rate;

//渲染
    let ins3 =
        rate.render({
            elem: '#test4',
            value: 3.0 //初始值
            ,
            theme: '#00a680',
            text: true //开启文本
            ,
            half: true
        });
})
layui.use('rate', function () {
    let rate = layui.rate;

//渲染
    let ins4 =
        rate.render({
            elem: '#test5',
            value: 3.0 //初始值
            ,
            theme: '#00a680',
            text: true //开启文本
            ,
            half: true
        });
})